package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.UserWorksComment;
import com.ecoolex.ying.space.entity.UserWorksCommentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface UserWorksCommentMapper {
    long countByExample(UserWorksCommentExample example);

    int deleteByExample(UserWorksCommentExample example);

    int deleteByPrimaryKey(Integer commentId);

    int insert(UserWorksComment record);

    int insertSelective(@Param("record") UserWorksComment record, @Param("selective") UserWorksComment.Column ... selective);

    UserWorksComment selectOneByExample(UserWorksCommentExample example);

    List<UserWorksComment> selectByExample(UserWorksCommentExample example);

    UserWorksComment selectByPrimaryKey(Integer commentId);

    UserWorksComment selectByPrimaryKeyWithLogicalDelete(@Param("commentId") Integer commentId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") UserWorksComment record, @Param("example") UserWorksCommentExample example, @Param("selective") UserWorksComment.Column ... selective);

    int updateByExample(@Param("record") UserWorksComment record, @Param("example") UserWorksCommentExample example);

    int updateByPrimaryKeySelective(@Param("record") UserWorksComment record, @Param("selective") UserWorksComment.Column ... selective);

    int updateByPrimaryKey(UserWorksComment record);

    int batchInsert(@Param("list") List<UserWorksComment> list);

    int batchInsertSelective(@Param("list") List<UserWorksComment> list, @Param("selective") UserWorksComment.Column ... selective);

    int logicalDeleteByExample(@Param("example") UserWorksCommentExample example);

    int logicalDeleteByPrimaryKey(Integer commentId);
}